package srv

import (
	"jgt-oper/src/bll"
	"jgt-oper/src/context"
)

// Park 园区管理
type Park struct {
	ParkBll *bll.Park `inject:""`
}

// Get 查询园区列表数据
func (a *Park) Get(ctx *context.Context) error {
	park, err := a.ParkBll.Get(ctx.Param("id"))
	if err != nil {
		return ctx.ResErrInternalServer(err)
	}
	return ctx.ResSuccess(park)
}
